package innerclass;

public class InnerClass2 {
    class Peson{
        private int id;
        private String no="88888";
        private  String balance;
        public String value(String n){
            return no;
        }
    }
    class Dog{
        private String name;
        Dog(String name){
            this.name=name;
        }
        public String getName(){
            return name;
        }

    }
    public Dog to(String s){
        return new Dog(s);
    }
    public Peson con(){
        return new Peson();
    }
    public void ship(String dest){
        Peson person=new Peson();
        Dog dog=new Dog(dest);
        System.out.println(dog.getName());
    }

    public static void main(String[] args) {
        InnerClass2 innerClass2=new InnerClass2();
        innerClass2.ship("盖伊");
        InnerClass2 innerClass21=new InnerClass2();

        InnerClass2.Peson P=innerClass21.con();
        InnerClass2.Dog d=innerClass21.to("魔戒");
        System.out.println(d.getName());
    }
}
